package fr.cdj.thebox.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class LogoutEvent extends GwtEvent<LogoutHandler> {

	private static Type<LogoutHandler> type;

	public LogoutEvent() {
	}

	public static Type<LogoutHandler> getType() {
		if (type == null) {
			type = new Type<LogoutHandler>();
		}
		return type;
	}

	@Override
	public Type<LogoutHandler> getAssociatedType() {
		return getType();
	}

	@Override
	protected void dispatch(LogoutHandler handler) {
		handler.onLogout(this);
	}

}
